import request from '@/utils/request';
// 获取收藏 评论/赞我的 接口
export const getList = (params) => {
  return request({
    url: '/api/zdservercore-bbs/bbsinteract/page',
    method: 'get',
    params: {
      ...params
    }
  })
}


// 删除收藏/点赞接口
export const remove = (data) => {
  return request({
    url: '/api/zdservercore-bbs/bbsinteract/remove',
    method: 'post',
    data: data
  })
}

// 点赞评论的方法
export const save = (data) => {
  return request({
      url: '/api/zdservercore-bbs/bbsinteract/save',
    method: 'post',
    data: data
  })
}

export const update = (row) => {
  return request({
    url: '/api/zdserver_bbs/bbsinteract/submit',
    method: 'post',
    data: row
  })
}

